﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Model.ViewModel
{
    public class Cost
    {
        
        public int ShfitID { get; set; }
        public DateTime CostTime { get; set; }
        public int UserID { get; set; }
        public string UserName { get; set; }
        [Required(ErrorMessage="金额必须填写")]
        [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$",ErrorMessage="金额只能为数字！")]
        public decimal CostAmount { get; set; }
        public int CostClassID { get; set; }
        public string CostDetail { get; set; }

      
    }
}
